<div class="leftbar leftlink">
    <div class="returnlink">
        <?php if (isset($parentEntry)): ?>
            <?php echo $html->link('返回上级目录', "/ftpfiles/index/{$parentEntry->b64filename}"); ?>
        <?php endif; ?>
    </div>
	<?php if (!empty($subdirs)): ?>
    <div class="subdirs">
        <ul>
        <?php foreach ($subdirs as $name => $entry): ?>
            <li>
                <a class="fg-button ui-state-default" href="<?php echo '/ftpfiles/index/'.$entry->b64filename; ?>"><span class="ui-icon ui-icon-folder-collapsed"></span></a>
                <?php echo $html->link($entry->Name, "/ftpfiles/index/{$entry->b64filename}", array('title' => $entry->Name)); ?>
                
            </li>
        <?php endforeach; ?>
        </ul>
        <hr />
    </div>
    <?php endif; ?>
</div>
